<?php
/** .-------------------------------------------------------------------
* |  Software: [HDCMS framework]
* |      Site: www.hdcms.com
* |-------------------------------------------------------------------
* |    Author: 向军 <2300071698@qq.com>
* |    WeChat: aihoudun
* | Copyright (c) 2012-2019, www.houdunwang.com. All Rights Reserved.
* '-------------------------------------------------------------------*/

namespace app\admin\controller;

class Common{
    //构造方法
    public function __construct(){
        //判断session中是否存在用户名和uid
        if(!isset($_SESSION['admin']['aid']))
        {
            message('请先登录',u('admin.login.index'),'error');
        }
    }
}
